package com.pojo.req.template;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TemplateDetailsReq {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 菜单名
     */
    private String name;

    /**
     * 菜单路由
     */
    private String path;

    /**
     * 菜单标签
     */
    private String label;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 菜单索引
     */
    private Short sort;

    /**
     * 上级id 0表示顶级id
     */
    private Long parentId;

    /**
     * 操作集合
     */
    private List<String> permission;

}
